Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Conversation

@tomerd
Copy link
Collaborator

@tomerd tomerd commented Mar 23, 2020

motivation: make sure library works as expected

changes:

  • add a Sample target we can use for testing
  • add a test to make sure backtraces are printed as expected
  • make docker tests use a release version for a more realistic tests
  • update linux test generation script to work with release builds

@tomerd tomerd added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Mar 23, 2020
motivation: make sure library works as expected

changes:
* add a Sample target we can use for testing
* add a test to make sure backtraces are printed as expected
* make docker tests use a release version for a more realistic tests
* update linux test generation script to work with release builds
let expectedError = UUID().uuidString
let pipe = Pipe()
let process = Process()
process.executableURL = URL(fileURLWithPath: ".build/release/Sample")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an SPM implementation detail and not guaranteed to be stable, but it's the best we can do.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh actually, could we swift run Sample?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we need the path for something (ie. if we can't use swift run for some reason), this might work:

$ swift build --show-bin-path
/Users/johannes/devel/swift-nio/.build/x86_64-apple-macosx/debug
$ swift build --show-bin-path -c release
/Users/johannes/devel/swift-nio/.build/x86_64-apple-macosx/release

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using swift run sounds like a great idea, I will try it!

Copy link
Collaborator Author

@tomerd tomerd Mar 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomerd tomerd added this to the 1.2.0 milestone Mar 24, 2020
@tomerd tomerd merged commit f2fd8c4 into swift-server:master Mar 25, 2020
@tomerd tomerd deleted the fix/test branch March 25, 2020 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants